<?php
error_reporting(0);
$isadmin=1; 
include '../comm/config.php';
//include '../comm/checkpostandget.php';
include 'check.php';
$adtype=$_POST['adtype']; 
$content =stripcslashes($_POST['content']); 
$content =addslashes($content);
$id=$_POST['id']; 

$q = "update ".$BIAOTOU."ad set adtype='".$adtype."',content='".$content."' where id='".$id."'";
mysql_query($q);

admin_log('修改广告');

mysql_close();
header('Location: adlist.php');
?>